package com.example.lawyer.databind.itemview;

import android.view.View;
import android.widget.ImageView;

import androidx.databinding.BindingAdapter;
import androidx.databinding.ObservableField;

import com.bumptech.glide.Glide;

public class TypeGridItemViewData {



    public ObservableField<String> icon = new ObservableField<>();
    public ObservableField<String> title = new ObservableField<>();


    @BindingAdapter("seticon")
    public static void SetIcon(View view,String icons)
    {
        System.out.println(icons);
        if(icons==null)
        {
            return;
        }
        Glide.with(view).load(icons).into((ImageView) view);
    }

}
